<template>
	<Swiper>
			<SwiperItem v-for="(item,id) in banners" :key="id">
				<a :href="item.link">
					<img :src="item.image" @load="imgload">
				</a>
			</SwiperItem>
		</Swiper>
</template>
<script>
	import {Swiper, SwiperItem} from 'components/common/swiper/swiperindex'
	export default{
		name:'HomeSwiper',
		components:{
			Swiper,
			SwiperItem
		},
		props:{
			banners:{
				type:Array
			}
		},
		data(){
			return{

			}
		},
		methods:{
			imgload(){
				this.$emit('homeSwiperImgLoad')
			}
		}
	}
</script>
<style type="text/css">
	
</style>